﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using SQLServer.DBUtility;
using Tenancy.Helper;
namespace Tenancy.Server
{
    /// <summary>
    /// Hbung_HostPagePic 的摘要说明
    /// </summary>
    public class Hbung_HostPagePic : IHttpHandler
    {
        /// <summary>
        /// 首页图片接口
        /// </summary>
        /// <param name="context"></param>
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string STr = string.Format("select PicPath from Hbung_Pic where RentType='3' ");
            DataTable mydata = DBHelpSQL.Query(STr).Tables[0];
            string Hb_DateJson = JsonHelper.DataTableToJSON(mydata);
            context.Response.Write(GenerClass.SetSucessJsData("图片轮播", Hb_DateJson));
            
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}